package com.base.essearch.video.controller;


import com.base.essearch.common.base.BaseController;
import com.base.essearch.common.entity.Result;
import com.base.essearch.video.entity.Menus;
import com.base.essearch.video.service.IMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 视频菜单
 *
 * @author lr
 * @since 2021-02-28
 */
@Controller
@RequestMapping("/video/menus")
public class MenusController extends BaseController {
    @Autowired
    private IMenusService iMenusService;

    @GetMapping("/list")
    public Result list() {
        List<Menus> list = iMenusService.list();
        return renderDataSuccess(list);
    }
}
